import Vue from 'vue';
import App from './App.vue';
import Home from './components/Home.vue';
import Video from './components/Video.vue';
import TimeEntries from './components/TimeEntries.vue';
import LogTime from './components/LogTime.vue';
import VueRouter from 'vue-router';
import VueResource from 'vue-resource';
import 'bootstrap/dist/css/bootstrap.css';
import VueVideoPlayer from 'vue-video-player';

Vue.use(VueResource);
Vue.use(VueRouter);
Vue.use(VueVideoPlayer);
var router = new VueRouter();

router.map({
  '/Home': {
    component: Home
    
  },
  '/video': {
    component: Video
    
  },
  '/time-entries': {
    component: TimeEntries,
    subRoutes: {
      '/log-time': {
        component: LogTime
      }
    }
  }
});

router.redirect({
  '*': '/Home'
});

router.start(App, '#app');
